The resource file was originally:

#include "resource.bi"

IDD_MAIN DIALOG DISCARDABLE  0, 0, 186, 46
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Dialog tricks"
FONT 8, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "OK",IDOK,129,7,50,14
    LTEXT           "Hi there.",IDC_STATIC,43,16,28,8
END


but I got errors, so I replaced IDC_STATIC with 0 for the sake of having the program compiler.


Potential header errors with FB windows headers...

win.SendMessage(hwnd, WM_SETICON, ICON_SMALL, cast(win.LPARAM, LoadIcon(NULL, _ 
	MAKEINTRESOURCE(IDC_APPLICATION))))
win.SendMessage(hwnd, WM_SETICON, ICON_BIG, cast( win.LPARAM, LoadIcon(NULL, _
	MAKEINTRESOURCE(IDC_APPLICATION))))
	
was the original code in that section...  Not sure if this is a problem with the tutorial, or with the FB windows header files